
package mock.dao;

import mock.dto.AccountDTO;
import mock.dto.CardDTO;

public interface AccountDAO {

	/**
	 * input: accountID
	 * output: AccountDTO
	 */
    AccountDTO getAccountByAccountID(int accountID);
    
    /**
     * input: accountID
     * update newBalance
     */
    boolean updateNewBalanceByAccountID(int accountID, double newBalance);
    
    /**
     * lay account bang CardDTO
     * @param card
     * @return
     */
    AccountDTO getAccountByCardDTO(CardDTO card);
    
    /**
     * lay account bang cardNo
     * @param cardNo
     * @return
     */
    AccountDTO getAccountByCardNo(String cardNo);
    

}
